﻿using Abp.Application.Services;
using Abp.Application.Services.Dto;
using Partner.Surround.Templates.Dto;
using System.Collections.Generic;
using System.Threading.Tasks;

namespace Partner.Surround.Templates
{
    /// <summary>
    /// 模板应用层接口
    /// </summary>
    public interface ITemplateAppService : IApplicationService
    {
        /// <summary>
        /// 获取模板数据集合
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Task<PagedResultDto<TemplateListDto>> GetPagedTemplate(GetPagedTemplateInput input);

        /// <summary>
        /// 获取模板编辑信息
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Task<GetTemplateForEditOutput> GetTemplateForEdit(NullableIdDto<long> input);

        /// <summary>
        /// 创建或修改模板信息
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Task CreateOrUpdateTemplate(CreateOrUpdateTemplateInput input);

        /// <summary>
        /// 删除模板
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Task DeleteTemplate(List<EntityDto<long>> inputs);
    }
}
